~ubuntu-branches/debian/squeeze/alsa-utils/squeeze

« back to all changes in this revision

Viewing changes to amixer/amixer.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Elimar Riesebieter, Jordi Mallach
  • Date: 2010-06-03 16:27:52 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100603162752-uspsz4bqdqf6dkcx
Tags: 1.0.23-2
[ Elimar Riesebieter ]
* Let dh_installinit install the LSB defaults. Thanks Sven Joachim for the
  hint. (closes: #584311)

[ Jordi Mallach ]
* Add a trailing newline to debian/NEWS to placate lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
                }
535
535
                break;
536
536
#endif
 
537
#ifdef SND_CTL_TLVT_DB_MINMAX
 
538
        case SND_CTL_TLVT_DB_MINMAX:
 
539
        case SND_CTL_TLVT_DB_MINMAX_MUTE:
 
540
                if (type == SND_CTL_TLVT_DB_MINMAX_MUTE)
 
541
                        printf("dBminmaxmute-");
 
542
                else
 
543
                        printf("dBminmax-");
 
544
                if (size != 2 * sizeof(unsigned int)) {
 
545
                        while (size > 0) {
 
546
                                printf("0x%08x,", tlv[idx++]);
 
547
                                size -= sizeof(unsigned int);
 
548
                        }
 
549
                } else {
 
550
                        printf("min=");
 
551
                        print_dB(tlv[2]);
 
552
                        printf(",max=");
 
553
                        print_dB(tlv[3]);
 
554
                }
 
555
                break;
 
556
#endif
537
557
        default:
538
558
                printf("unk-%i-", type);
539
559
                while (size > 0) {
602
622
                break;
603
623
        }
604
624
        if (level & LEVEL_BASIC) {
 
625
                if (!snd_ctl_elem_info_is_readable(info))
 
626
                        goto __skip_read;
605
627
                if ((err = snd_hctl_elem_read(elem, control)) < 0) {
606
628
                        error("Control %s element read error: %s\n", card, snd_strerror(err));
607
629
                        return err;
638
660
                        }
639
661
                }
640
662
                printf("\n");
 
663
              __skip_read:
641
664
                if (!snd_ctl_elem_info_is_tlv_readable(info))
642
665
                        goto __skip_tlv;
643
666
                tlv = malloc(4096);