Print this page
1031 Minor audioctl save-controls issue with newlines in hardware info
10620 audioctl: don't return failure because of illegal enum value
10617 audiohd: don't create record-source control if there is none

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
          +++ new/usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
↓ open down ↓ 1966 lines elided ↑ open up ↑
1967 1967                  audiohd_create_stereo(statep, CTL_MONGAIN,
1968 1968                      AUDIO_CTRL_ID_MONGAIN, MONVOL, 0,
1969 1969                      audiohd_set_mongain);
1970 1970          }
1971 1971  
1972 1972          if (statep->loopback_supported) {
1973 1973                  audiohd_create_bool(statep, CTL_LOOP, AUDIO_CTRL_ID_LOOPBACK,
1974 1974                      0, audiohd_set_loopback);
1975 1975          }
1976 1976  
1977      -        audiohd_create_recsrc(statep);
     1977 +        if (statep->inmask != 0)
     1978 +                audiohd_create_recsrc(statep);
1978 1979          audiohd_configure_output(statep);
1979 1980          audiohd_configure_input(statep);
1980 1981  }
1981 1982  
1982 1983  /*
1983 1984   * quiesce(9E) entry point.
1984 1985   *
1985 1986   * This function is called when the system is single-threaded at high
1986 1987   * PIL with preemption disabled. Therefore, this function must not be
1987 1988   * blocked.
↓ open down ↓ 3920 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX